﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%--<%@ OutputCache Duration="60" VaryByParam="none" %>--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="css/index.css" rel="stylesheet" type="text/css" />
    <link href="css/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <link href="css/ui-lightness/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.4.2.js" type="text/javascript"></script>
    <script src="js/jquery.ui.core.js" type="text/javascript"></script>
    <script src="js/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="js/jquery.ui.tabs.js" type="text/javascript"></script>
    <link href="css/demos.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
    <script src="js/common.js" type="text/javascript"></script>
    <script type="text/javascript">

        window.onload = getMessage2;

        $(function () {
            $("#<%=txtSearch.ClientID %>").autocomplete(
            { source: "searchSuggestion.ashx",
                select: function (event, ui) { $("#<%=txtSearch.ClientID %>").val(ui.item.value); $("#<%=indexForm.ClientID %>").submit(); }
            });
        });

        $(function () {
            $("#<%=txtSearch.ClientID %>").focus(function () {
                if ($(this).val() == "请输入搜索内容") {
                    $(this).val("");
                }
            }).blur(function () {
                if($(this).val()==""){
                    $(this).val("请输入搜索内容");
                }
            });
        });

        $(function () {
            $("#tabs").tabs({
                collapsible: true
            });
        });

  
        
    </script>
    <title></title>
</head>
<body>
    
    <div id="message" style="display:none">
        <div id="mhead"><span id="close" onclick="hide()">x</span></div>
        <div id="mbody"><a id="messagelink" href="reply.aspx"></a></div>
    </div>

    <form id="indexForm" runat="server"><div id="sadBody">
    <div id="header1">
    <div id="header2">
    <div id="header3"> 
            <h1>Lost And Found</h1>
            <h2>广东药学院GDPU</h2>
    </div>
    </div>
    </div>
    <div id="menu">
            <ul>
                <li class="first"><a href="index.aspx">首页</a></li>
                <li><a href="found.aspx">寻物启事</a></li>
                <li><a href="get.aspx">招领启事</a></li>
                <li><a href="publish.aspx">发布信息</a></li>
                <li><a href="rss.aspx">最新信息(RSS)</a></li>
                <li><a href="PersonCenter.aspx">个人中心</a></li>
                <li><a href="AboutUs.aspx">关于我们</a></li>
            </ul> 
    </div>
    <table id="search"><tr><td width="148px">
        
        <input type="text" ID="txtSearch" runat="server" value="请输入搜索内容" 
            style="color:Gray; height:25px; line-height:21px; border:solid 1px #CBCBCB; width: 146px;" /></td>
        
        <td style="width:100px;"><asp:RequiredFieldValidator ID="rfvSearch" runat="server"
                              ErrorMessage="*" InitialValue="请输入搜索内容" 
                              ControlToValidate="txtSearch" ValidationGroup="Search" 
                 ForeColor="Red" Display="Dynamic">*</asp:RequiredFieldValidator>
            <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/images/search.jpg" 
                ValidationGroup="Search" onclick="btnSearch_Click" /></td>
        
        <td width="60px">
            <font color="red">热词搜索:</font>
        </td>
        <td width="300px">
            <ul>
            <asp:Repeater ID="rpHotWords" EnableViewState="true" runat="server">
            
                <ItemTemplate>
                    <li style="float:left;margin-left:20px;list-style-type:none;"><a style="color:#FF0aaa; text-decoration:underline" href='searchResults.aspx?keyword=<%#Eval("KeyWord") %>'><%#Eval("KeyWord") %></a></li>
                </ItemTemplate>
            
            </asp:Repeater>
            </ul>
        </td>

        <td style="text-align:right; width:60px"><a runat="server" id="retrieve" href="javascript:void(0)" onclick="show()" ><font color="#CDA0C8" size="2px">找回密码</font></a></td>
        
        
        <td style="text-align:right; width:30px"><asp:LinkButton ID="logOut" runat="server" ForeColor="#CDA0C8" Font-Size="12px" 
            onclick="logOut_Click">退出</asp:LinkButton></td>

        <td style="text-align:right; width:80px"><a runat="server" id="modify" style="text-decoration:none"><font color="#CDA0C8" size="2px">修改资料</font></a></td>
        
    </tr></table>
    <div id="content">
            <div id="contentL">

                    <div class="demo">
 
                    <div id="tabs">
	                    <ul>
		                    <li><a href="#tabs-1">失物招领</a></li>
		                    <li><a href="#tabs-2">寻物启事</a></li>
		                    <li><a href="#tabs-3">招领启事</a></li>
	                    </ul>
	                    <div id="tabs-1">
		                    <center>
                            <table class="tbInfo" width="450px" style="text-align:center">
                            <asp:Repeater ID="rpLAF" EnableViewState="true" runat="server">
                                <ItemTemplate>
                                
                                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#f5fafa; height:40px;"> 
                                   <td width="100px"><%#Eval("LostProperty")%></td>
                                   <td><%#Eval("GoodsName")%></td>
                                   <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                                   <td width="70px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                                   </tr>     
                                
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                
                                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#fff; height:40px;"> 
                                   <td width="100px"><%#Eval("LostProperty")%></td>
                                   <td><%#Eval("GoodsName")%></td>
                                   <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                                   <td width="70px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                                   </tr>  

                                </AlternatingItemTemplate>
                            </asp:Repeater>
                            <tr><td colspan="4"><a style="color:red" href="rss.aspx">更多</a></td></tr>
                            </table>
                            </center>
	                    </div>
	                    <div id="tabs-2">
		                    
                            <center>
                            <table class="tbInfo" width="450px" style="text-align:center">
                            <asp:Repeater ID="rpFound" EnableViewState="true" runat="server">
                                <ItemTemplate>
                                
                                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#f5fafa; height:40px;"> 
                                   <td width="100px"><%#Eval("LostProperty")%></td>
                                   <td><%#Eval("GoodsName")%></td>
                                   <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                                   <td width="70px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                                   </tr>     
                                
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                
                                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#fff; height:40px;"> 
                                   <td width="100px"><%#Eval("LostProperty")%></td>
                                   <td><%#Eval("GoodsName")%></td>
                                   <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                                   <td width="70px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                                   </tr>  

                                </AlternatingItemTemplate>
                            </asp:Repeater>
                            <tr><td colspan="4"><a style="color:red" href="found.aspx">更多</a></td></tr>
                            </table>
                            </center>
		                    
	                    </div>
	                    <div id="tabs-3">
		                    
		                    
                            
                            <center>
                            <table class="tbInfo" width="450px" style="text-align:center">
                            <asp:Repeater ID="rpGet" EnableViewState="true" runat="server">
                                <ItemTemplate>
                                
                                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#f5fafa; height:40px;"> 
                                   <td width="100px"><%#Eval("LostProperty")%></td>
                                   <td><%#Eval("GoodsName")%></td>
                                   <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                                   <td width="70px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                                   </tr>     
                                
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                
                                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#fff; height:40px;"> 
                                   <td width="100px"><%#Eval("LostProperty")%></td>
                                   <td><%#Eval("GoodsName")%></td>
                                   <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                                   <td width="70px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                                   </tr>  

                                </AlternatingItemTemplate>
                            </asp:Repeater>
                            <tr><td colspan="4"><a style="color:red" href="get.aspx">更多</a></td></tr>
                            </table>
                            </center>
                            
                            
	                    </div>
                    </div>
 
                    </div><!-- End demo -->
 
                   <%-- <div class="demo-description">
 
 
                    </div><!-- End demo-description -->--%>
                
            </div>
            <div id="contentR" runat="server">
                <div id="contentRT" runat="server"><%=sb.ToString() %>
                        <div runat="server" id="contentRT1" style="height:180px; border:0;">
                        用户名：<input type="text" ID="txtName" runat="server" style="width:126px; border:solid 1px #CBCBCB"/><br />
                        密码：<input type="password" ID="txtPwd" runat="server" style="width:126px;border:solid 1px #CBCBCB"/><br /><br />
                        <center><input type="checkbox" runat="server" id="cbRemember" />&nbsp;&nbsp;记住我</center><br />
                        <center>
                        <asp:LinkButton ID="login" runat="server" onclick="login_Click"  ForeColor="#FF9900">登录</asp:LinkButton>                   
                        &nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="register" runat="server" onclick="register_Click" 
                                ForeColor="#FF9900">注册帐号</asp:LinkButton>
                        </center>
                </div>               
            </div>
            <div id="contentRM">
                    
                         <center>公告</center>
                         <marquee direction="up" scrolldelay="300" height="120px">
                         <center><p>禁止发布不良信息</p></center></marquee>
                    
            </div>
            <div id="contentRB">
                         <center>信息反馈</center><br /><center>对本系统您有什么建议？</center>
                         <center><a style="color:Red; text-decoration:underline;" href="feedback.aspx">请点击进入信息反馈</a></center>
            </div>
            </div>
    </div>
    <div id="footer">
            <ul style="list-style:none">
                <li>广东药学院</li>
                <li>失物招领</li>
                <li>联系电话：13824774439</li>
            </ul>
    </div></div>

    <div id="divRetrieve">
            <div id="divRetrieveC">
            <table>
            <tr><td align="right">
            用户名：</td>
            <td>
            <input runat="server" id="divUsername" style="width:148px" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="不能为空" ControlToValidate="divUsername" 
                    ValidationGroup="Retrieve" ForeColor="Red"></asp:RequiredFieldValidator>  
            </td>
            </tr><tr><td height="10px" colspan="2"></td></tr>
            
            <tr>
            <td align="right">
            密保问题：
            </td>
            <td><asp:DropDownList ID="divDropDL" runat="server" style="width:152px">
                            <asp:ListItem Value="1">您小学的名字?</asp:ListItem>
                            <asp:ListItem Value="2">您最喜欢的地方？</asp:ListItem>
                            <asp:ListItem Value="3">您最喜欢的演员？</asp:ListItem>
                     </asp:DropDownList></td>
            </tr><tr><td height="10px" colspan="2"></td></tr>
            
            <tr>
            <td align="right">
            答案：
            </td>
            <td><input runat="server" id="divAnswer" type="text" style="width:148px" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="不能为空" ControlToValidate="divAnswer" ValidationGroup="Retrieve" ForeColor="Red"></asp:RequiredFieldValidator></td>
            </tr><tr><td height="10px" colspan="2"></td></tr>    
             
            <tr>   
            <td colspan="2" align="center"><asp:LinkButton ID="divSubmit" runat="server" ValidationGroup="Retrieve" 
                    style="color:#FF9900" onclick="divSubmit_Click">提交</asp:LinkButton>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    
                <a href="javascript:void(0)" onclick="hid()" style="color:#FF9900">关闭</a>
            </td>
            </tr> 
            </table>
            </div>
    </div>
    </form><div id="sad"></div>
</body>
</html>
